<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateAdminFundNewsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('admin_fund_news', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->integer('fund_id')->comment('基金ID');
            $table->string('title')->default('')->comment('动态标题');
            $table->string('desc')->nullable()->comment('描述');
            $table->string('file_list')->nullable()->comment('文件组');
            $table->timestamp('show_time')->nullable()->comment('发布时间');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('admin_fund_news');
    }
}
